<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>digichef.registration.tests.RegistrationModelTests</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="digichef-module.html">Package&nbsp;digichef</a> ::
        <a href="digichef.registration-module.html">Package&nbsp;registration</a> ::
        <a href="digichef.registration.tests-module.html">Module&nbsp;tests</a> ::
        Class&nbsp;RegistrationModelTests
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="digichef.registration.tests.RegistrationModelTests-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class RegistrationModelTests</h1><p class="nomargin-top"><span class="codelink"><a href="digichef.registration.tests-pysrc.html#RegistrationModelTests">source&nbsp;code</a></span></p>
<center>
<center>  <map id="uml_class_diagram_for_digichef_19" name="uml_class_diagram_for_digichef_19">
<area shape="rect" href="digichef.registration.tests.RegistrationTestCase-class.html#setUp" title="digichef.registration.tests.RegistrationTestCase.setUp" alt="" coords="72,36,195,55"/>
<area shape="rect" href="digichef.registration.tests.RegistrationTestCase-class.html" title="Base class for the test cases; this sets up two users &#45;&#45; one expired, one not &#45;&#45; which are used to exercise various parts of the application." alt="" coords="71,11,196,56"/>
<area shape="rect" href="digichef.registration.tests.RegistrationModelTests-class.html#test_new_user_is_inactive" title="Test that a newly&#45;created user is inactive." alt="" coords="17,111,249,129"/>
<area shape="rect" href="digichef.registration.tests.RegistrationModelTests-class.html#test_registration_profile_created" title="Test that a ``RegistrationProfile`` is created for a new user." alt="" coords="17,129,249,148"/>
<area shape="rect" href="digichef.registration.tests.RegistrationModelTests-class.html#test_activation_email" title="Test that user signup sends an activation email." alt="" coords="17,148,249,167"/>
<area shape="rect" href="digichef.registration.tests.RegistrationModelTests-class.html#test_activation" title="Test that user activation actually activates the user and properly resets the activation key, and fails for an already&#45;active or expired user, or an invalid key." alt="" coords="17,167,249,185"/>
<area shape="rect" href="digichef.registration.tests.RegistrationModelTests-class.html#test_account_expiration_condition" title="Test that ``RegistrationProfile.activation_key_expired()`` returns ``True`` for expired users and for active users, and ``False`` otherwise." alt="" coords="17,185,249,204"/>
<area shape="rect" href="digichef.registration.tests.RegistrationModelTests-class.html#test_expired_user_deletion" title="Test that ``RegistrationProfile.objects.delete_expired_users()`` deletes only inactive users whose activation window has expired." alt="" coords="17,204,249,223"/>
<area shape="rect" href="digichef.registration.tests.RegistrationModelTests-class.html#test_management_command" title="Test that ``manage.py cleanupregistration`` functions correctly." alt="" coords="17,223,249,241"/>
<area shape="rect" href="digichef.registration.tests.RegistrationModelTests-class.html" title="Tests for the model&#45;oriented functionality of django&#45;registration, including ``RegistrationProfile`` and its custom manager." alt="" coords="16,85,251,243"/>
</map>
  <img src="uml_class_diagram_for_digichef_19.gif" alt='' usemap="#uml_class_diagram_for_digichef_19" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<pre class="literalblock">

Tests for the model-oriented functionality of django-registration,
including ``RegistrationProfile`` and its custom manager.

</pre>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="test_new_user_is_inactive"></a><span class="summary-sig-name">test_new_user_is_inactive</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Test that a newly-created user is inactive.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="digichef.registration.tests-pysrc.html#RegistrationModelTests.test_new_user_is_inactive">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="test_registration_profile_created"></a><span class="summary-sig-name">test_registration_profile_created</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Test that a ``RegistrationProfile`` is created for a new user.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="digichef.registration.tests-pysrc.html#RegistrationModelTests.test_registration_profile_created">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="test_activation_email"></a><span class="summary-sig-name">test_activation_email</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Test that user signup sends an activation email.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="digichef.registration.tests-pysrc.html#RegistrationModelTests.test_activation_email">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="test_activation"></a><span class="summary-sig-name">test_activation</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Test that user activation actually activates the user and
properly resets the activation key, and fails for an
already-active or expired user, or an invalid key.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="digichef.registration.tests-pysrc.html#RegistrationModelTests.test_activation">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="test_account_expiration_condition"></a><span class="summary-sig-name">test_account_expiration_condition</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Test that ``RegistrationProfile.activation_key_expired()``
returns ``True`` for expired users and for active users, and
``False`` otherwise.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="digichef.registration.tests-pysrc.html#RegistrationModelTests.test_account_expiration_condition">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="test_expired_user_deletion"></a><span class="summary-sig-name">test_expired_user_deletion</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Test that
``RegistrationProfile.objects.delete_expired_users()`` deletes
only inactive users whose activation window has expired.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="digichef.registration.tests-pysrc.html#RegistrationModelTests.test_expired_user_deletion">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="test_management_command"></a><span class="summary-sig-name">test_management_command</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Test that ``manage.py cleanupregistration`` functions
correctly.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="digichef.registration.tests-pysrc.html#RegistrationModelTests.test_management_command">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="digichef.registration.tests.RegistrationTestCase-class.html">RegistrationTestCase</a></code></b>:
      <code><a href="digichef.registration.tests.RegistrationTestCase-class.html#setUp">setUp</a></code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Thu Apr  1 02:28:24 2010
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
